package com.xdap.keymen.controller.punch;

import com.xdap.keymen.service.punch.PunchEmployeeService;
import com.xdap.keymen.service.punch.PunchService;
import com.xdap.motor.annotation.RestWrapper;
import com.xdap.motor.vo.ResponseVo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/custom/punch/employee")
@RequiredArgsConstructor
@Slf4j
public class PunchEmployeeController {
    private final PunchEmployeeService punchEmployeeService;


    @GetMapping("/list")
    @RestWrapper
    public ResponseVo list(String updDate) {
        punchEmployeeService.getEmployeeList(updDate);
        return ResponseVo.ok();
    }

}
